package com.shijunhao.graduation.service.business;

import com.shijunhao.graduation.domain.dto.BusinessForumTypeDto;
import com.shijunhao.graduation.domain.entity.BusinessForumType;
import com.shijunhao.graduation.domain.vo.BusinessForumTypeVo;
import com.shijunhao.graduation.service.system.BaseService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author shijunhao
 * @since 2022-04-16
 */
public interface IBusinessForumTypeService extends BaseService<BusinessForumType> {
    Long insert(BusinessForumTypeDto dto);

    /**
     * @param dto: 类型实体
     * @return: java.lang.Boolean
     * @author: shijunhao
     * @date: 2022/4/28 22:25
     * @description: 更新实体
     */
    Boolean update(BusinessForumTypeDto dto);

    /**
     * @return: java.util.List<com.shijunhao.graduation.domain.vo.BusinessForumTypeVo>
     * @author: shijunhao
     * @date: 2022/4/17 3:33
     * @description: 所有主题信息数据
     */
    List<BusinessForumTypeVo> listAll();

    /**
     * @param entity:
     * @return: com.shijunhao.graduation.domain.vo.BusinessForumTypeVo
     * @author: shijunhao
     * @date: 2022/4/17 3:34
     * @description: 转为Vo对象
     */
    BusinessForumTypeVo toVo(BusinessForumType entity);
}
